<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/comum/login_template.xhtml" >
  <ui:define name="conteudo" >
  
	<h:form>
	<div id="LoginPannel">
	<rich:panel styleClass="login">
		
			 <f:facet name="header">
			
			 	<h:outputText value="Digite o usuário e a senha" />
			
			 </f:facet>
			
			 <h:panelGrid columns="2">
			
				 <h:outputText value="Usuário:" /><h:inputText binding="#{LoginBean.login}" size="30" styleClass="camposLogin" />
				
				 <h:outputText value="Senha:" /><h:inputSecret binding="#{LoginBean.senha}" size="30" styleClass="camposLogin" />
			
			 </h:panelGrid>
			
			 <h:commandButton action="#{LoginBean.entrar}" value="Entrar" />
		
		 </rich:panel>

		 </div>
		
		 </h:form>
		
		 <a4j:status>
		
		 <f:facet name="start">
		
		 <h:graphicImage value="#{pageContext.servletContext.contextPath}/imagens/carregando.gif"/>
		
		 </f:facet>

 </a4j:status>
	
  </ui:define>
  
</ui:composition>

</html>